package com.jeeplus.modules.guide.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface WarningMapper {
    /**
     *查询取号业务编码
     * @return
     */
    List<Map<String,Object>> findSerial();

    /**
     *查询相关业务空闲的窗口
     * @param serial
     * @return
     */
    List<Map<String,Object>> findLeisureWindowBySerial(@Param("serial")int serial);

    /**
     *根据窗口查询到最后一个办理数据结束时间和排队叫号编码
     * @param counter
     * @return
     */
    List<Map<String,Object>> findEndTimeAndNumberByCounter(@Param("counter")int counter);

    int insertWarning(Map<String, Object> map);
}
